package ctrl;

import model.robot;

public class robotCtrl {

	private robot r ;
	private static robotCtrl instance = null;
	
	public static robotCtrl getInstance()
	{
		if(instance == null)
		{
			instance = new robotCtrl();
		}
		return instance;
	}
	public robotCtrl()
	{
		r = new robot();
	}
	public void leftClick()
	{
		r.LeftclickRobot();
	}
	public void leftRelease()
	{
		r.LeftReleaseRobot();
	}
	public void rightClick()
	{
		r.RightClickRobot();
	}
	public void rightRelease()
	{
		r.RightReleaseRobot();
	}
	public void turnMouse(int wheelAmt)
	{
		r.mouseWheelTurn(wheelAmt);
	
	}
	public void setDelay(int ms)
	{
		r.setDelay(ms);
	}
	public void pressK(int keyCode)
	{
		r.pressKey(keyCode);
	}
	public void releaseK(int keyCode)
	{
		r.releaseKey(keyCode);
	}
	public void moveMouseTo(int x, int y)
	{
		r.moveMouseTo(x, y);
	}
	public void setRobot(robot r)
	{
		this.r = r;
	}
	public robot getRobot()
	{
		return r;
	}
}
